a = 3.1415926
int(a)

age = 16
if age >= 18:
    print ("你是个成年人")
else:
    print ("你还未成年")

list1 = ["a","b",None]
for char in list1:
    print(char.join("A"))

a = [1,2,3,4,5,6]
for i in a:
    print(i)

for i in range(len(a)):
    print(i, a[i])



import time

print('\033[1;31m')
print('登录信息'.center(46, "*"), "\033[0m")
print('\033[34m*HOST:\t', "192.168.1.10")
print('*PORT:\t', "80")
print('*User:\t', "jack")
print('*TIME:\t', time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()))
print('\033[1;31m*' * 50, '\033[0m')
print("\033[32m欢迎登录！\033[0m")
    

dic = {'Name': 'Jack','Age': 7, 'Class': 'First'}

print ("dic['Name']: ", dic['Name'])
print ("dic['Age']: ", dic['Age'])